package com.mapper;

import com.bean.ClazzBean;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ClazzMapperByAnnotation {
    @Insert("insert into t_clazz (cname) values (#{cname})")
    public int saveClazz(ClazzBean clazzBean);

    @Select("select * from t_clazz")
    public List<ClazzBean> selectAll();

}
